package org.hdl.anima.message;

import java.io.IOException;

import org.hdl.anima.common.io.InputArchive;
import org.hdl.anima.common.io.OutputArchive;

/**
 * 
 * @author qiuhd
 * @since  2014年8月21日
 */
public class CloseBackendSessionReq extends RequestAdapter {

	private int identity ;		//session identity
	
	public CloseBackendSessionReq() {
		setId(3);
	}
	
	public CloseBackendSessionReq(int identity) {
		this();
		this.identity = identity;
	}

	@Override
	public void doDeserialize(InputArchive in) throws IOException {
		this.identity = in.readInt();
	}

	@Override
	public void doSerialize(OutputArchive out) throws IOException {
		out.writeInt(identity);
	}

	public int getIdentity() {
		return identity;
	}

	public void setIdentity(int identity) {
		this.identity = identity;
	}
}

